</head>
<body>
	<?php include($folder.'/helpers/createForm.tpl') ?>
	<center>
	<table style="width:980px;text-align:left;margin:0;padding:0" cellpadding="0" cellspacing="0">
		<tr>
			<td>
<?php echo box_simple_header('HonlapFejlec') ?>
					<center>
						<table width="100%" cellpadding="0" cellspacing="0">
							<tr>
								<td style="padding-left:45px"><img class="logoImage" src="<?php echo $prefix ?>/image/logo.png?<?php echo $clientResourcesId ?>" title="Kincskereső Dráma és Kézműves Műhely" alt="Kincskereső Dráma és Kézműves Műhely" style="filter:alpha(opacity=100);opacity: 1.0;-moz-opacity:1.0" /></td>
								<td style="padding-top:10px" width="100%" valign="top">
									<center>
									<a href="<?php echo $prefix ?>/" style="font-size:30px">Kincskereső Dráma és Kézműves Műhely</a><?php /*<input type="submit" value="submit" />*/?>
									<br />
www.kincskeresomuhely.hu													
									</center>
								</td>
								<td style="padding-right:45px"><img class="logoImage" src="<?php echo $prefix ?>/image/logo.png?<?php echo $clientResourcesId ?>" title="Kincskereső Dráma és Kézműves Műhely" alt="Kincskereső Dráma és Kézműves Műhely" style="filter:alpha(opacity=100);opacity: 1.0;-moz-opacity:1.0" /></td>
							</tr>
						</table>
					</center>
<?php echo box_simple_footer() ?>
			</td>
		</tr>
		<tr>
			<td>
				<table width="100%" style="margin:0;padding:0" cellpadding="0" cellspacing="0">
					<tr>
						<td width="200px" valign="top">
							<table style="width:100%" cellpadding="0px" cellspacing="0px">
								<tr>
									<td>
<?php echo box_header('OldalTerkep') ?>
													<b>Oldaltérkép</b>
<?php echo box_middle('OldalTerkep') ?>
<?php // echo menu() ?>
<?php echo treeView(array(
	'id' => 'trvMain',
	'url' => '/helper/treeview',
	'dbTableName' => 'menu2',
	'dbIDColumn' => 'id',
	'dbTextColumn' => 'description',
	'dbHyperLinkColumn' => 'link',
	'dbParentIDColumn' => 'menu_id',
	'dbOrderByColumn' => 'number',
	'theme' => 'arrow')) ?>
<?php echo box_footer() ?>
									</td>
								</tr>
								<tr>
									<td>
<?php echo box_header('Galeriak') ?>
<b>Galériák</b>
<?php echo box_middle('Galeriak') ?>
<center>
<?php echo paginator(array(
	'id' => 'master_galeriak',
	'selectCountMethod' => 'master_galeriak_select_count',
	'itemsPerPageAll' => null,
	'itemsPerPage' => $master['pageSize'])) ?>
</center>
<ul style="margin-left:0px;margin-top:0px;padding-left:15px;padding-top:0px">
<?php echo repeater(array(
	'id'=>'master_galeriak',
	'selectMethod' => 'master_galeriak_select',
	'cellTemplate' => '<li style="margin-bottom:5px">
		<a href="'.$prefix.'/kepgaleria?id={id}">{prefix}{name}{suffix}</a><br />
		</li>',
	'itemsPerPage' => $master['pageSize'],
  'htmlEncode' => array('prefix' => false, 'suffix' => false))) ?>
																				</ul>
<?php echo box_footer() ?>
									</td>
							</tr>							
							</table>
						</td>
						<td valign="top" id="mainContent">
<?php echo box_simple_header('WebPageContent') ?>
<?php $siteMapPath = siteMapPath(array(
	'id' => 'smpMain',
	'url' => '/helper/treeview',
	'dbTableName' => 'menu2',
	'dbIDColumn' => 'id',
	'dbTextColumn' => 'description',
	'dbHyperLinkColumn' => 'link',
	'dbParentIDColumn' => 'menu_id',
	'dbOrderByColumn' => 'number')) ?>
<?php // if (!empty($master['pageTitle'])): ?>
<?php if (!empty($master['hyperLink'])) $hyperLinkEmpty = false ?>
<table style="width:100%">
  <tr>
    <td style="border-color:<?php echo $master['colors']['border'] ?>;border-width:0px 0px 1px 0px;border-style:solid">
      <table style="width:100%">
        <tr>
          <td><?php echo $siteMapPath['html'] ?></td>
<?php
$shareTitle = $siteMapPath['plain'];
if ($shareTitle !== null && $shareTitle !== '' &&
	$master['pageTitle'] !== null && $master['pageTitle'] !== '')
	$shareTitle .= ' > ';
$shareTitle .= $master['pageTitle'];
?>
          <td style="width:30px" valign="top">
            <table>
              <tr><td>
                <a class="share-picture-link" href="<?php echo ___('http://iwiw.hu/pages/share/share.jsp?u='.urlencode('http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']).'&t='.urlencode($shareTitle)) ?>" target="_blank">
                  <img src="<?php echo $prefix ?>/image/share/iwiw.png?<?php echo $clientResourcesId ?>" title="Megosztás IWIW-en" alt="Megosztás IWIW-en" style="border-style:none" />
                </a>
              </td><td>
                <a class="share-picture-link" href="<?php echo ___('http://www.facebook.com/sharer.php?u='.urlencode('http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']).'&t='.urlencode($shareTitle)) ?>" target="_blank">
                  <img src="<?php echo $prefix ?>/image/share/facebook.png?<?php echo $clientResourcesId ?>" title="Megosztás Facebook-on" alt="Megosztás Facebook-on" style="border-style:none" />
                </a>
              </td><td>
                <a class="share-picture-link" href="<?php echo ___('http://skydrive.live.com/sharefavorite.aspx/.SharedFavorites?url='.urlencode('http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']).'&title='.urlencode($shareTitle)) ?>" target="_blank">
                  <img src="<?php echo $prefix ?>/image/share/windows-live.png?<?php echo $clientResourcesId ?>" title="Megosztás Windows Live-on" alt="Megosztás Windows Live-on" style="border-style:none" />
                </a>
              </td><td>
                <a class="share-picture-link" href="<?php echo ___('http://google.com/bookmarks/mark?op=edit&bkmk='.urlencode('http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']).'&title='.urlencode($shareTitle)) ?>" target="_blank">
                  <img src="<?php echo $prefix ?>/image/share/google.png?<?php echo $clientResourcesId ?>" title="Google Könyvjelző létrehozása" alt="Google Könyvjelző létrehozása" style="border-style:none" />
                </a>
              </td><td>
                <a class="share-picture-link" href="<?php echo ___('http://twitter.com/home?status='.urlencode($shareTitle.' - http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'])) ?>" target="_blank">
                  <img src="<?php echo $prefix ?>/image/share/twitter.png?<?php echo $clientResourcesId ?>" title="Megosztás Twitter-en" alt="Megosztás Twitter-en" style="border-style:none" />
                </a>
              </td></tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <?php if (!empty($master['pageTitle'])): ?>
  <tr>
    <td>
      <span style="font-weight:bold" id="pageTitle"><?php if ($hyperLinkEmpty===false): ?><a href="<?php echo $master['hyperLink'] ?>"><?php endif ?><?php echo $master['pageTitle'] ?><?php if ($hyperLinkEmpty===false): ?></a><?php endif ?><br /></span>
    </td>
  </tr>
  <?php endif ?>
</table>
<?php // endif; ?>